<%@ include file = "/common/ini.jsp"%>
<%@ include file = "/common/_log4j.jsp"%>
<%@ include file = "/common/_ApplicationContext_init.jsp"%>
<%@ include file = "/common/_vr.jsp"%>
<%
    // 定义名称
    String title = "修改岗位";
    PostManager postManager = (PostManager)applicationContext.getBean("postManager");
    Post post = (Post)postManager.get(request.getParameter("id"));
%>
<script>
    function submitData()
    {
        detailForm.serviceURL.value = "sysframe.post.UpdatePostService";
        detailForm.submit();
    }
    function reset()
    {
        detailForm.id.value = "<%= post.getId()%>";
        <%
        if(vr.isAllValidated())
        {
            %>
            detailForm.orgLength.value = "<%= post.getOrgLength()%>";
            detailForm.roleLength.value = "<%= post.getRoleLength()%>";
            <%
        }
        else
        {
            %>
            detailForm.orgLength.value = "<%= request.getParameter("orgLength")%>";
            detailForm.roleLength.value = "<%= request.getParameter("roleLength")%>";
            <%
        }
        %>
    }
</script>
<%@ include file = "/common/detail/_OnForm.jsp"%>
<%@ include file = "_detail4Update.jsp"%>
<%@ include file = "/common/detail/_UnderForm.jsp"%>
